/*
 Navicat Premium Data Transfer

 Source Server         : MariaDB
 Source Server Type    : MariaDB
 Source Server Version : 100323
 Source Host           : 127.0.0.1:3306
 Source Schema         : eladmin

 Target Server Type    : MariaDB
 Target Server Version : 100323
 File Encoding         : 65001

 Date: 11/08/2020 11:11:21
*/

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
-- Table structure for sys_user
-- ----------------------------
DROP TABLE IF EXISTS `sys_user`;
CREATE TABLE `sys_user` (
  `user_id` bigint(20) NOT NULL AUTO_INCREMENT COMMENT 'ID',
  `dept_id` bigint(20) DEFAULT NULL COMMENT '部门名称',
  `username` varchar(255) DEFAULT NULL COMMENT '用户名',
  `nick_name` varchar(255) DEFAULT NULL COMMENT '昵称',
  `phone` varchar(255) DEFAULT NULL COMMENT '手机号码',
  `email` varchar(255) DEFAULT NULL COMMENT '邮箱',
  `avatar_name` varchar(255) DEFAULT NULL COMMENT '头像地址',
  `avatar_usr` varchar(255) DEFAULT NULL COMMENT '头像真实路径',
  `password` varchar(255) DEFAULT NULL COMMENT '密码',
  `is_admin` bit(1) DEFAULT b'0' COMMENT '是否为admin账号',
  `enabled` bigint(20) DEFAULT NULL COMMENT '状态：1启用、0禁用',
  `create_by` varchar(255) DEFAULT NULL COMMENT '创建者',
  `update_by` varchar(255) DEFAULT NULL COMMENT '更新着',
  `pwd_reset_time` datetime DEFAULT NULL COMMENT '修改密码的时间',
  `create_time` datetime DEFAULT NULL COMMENT '创建日期',
  `update_time` datetime DEFAULT NULL COMMENT '更新时间',
  `gender` int(11) DEFAULT NULL COMMENT '用户微信中记录的性别（1：男，0：女）',
  `id_card_no` varchar(18) DEFAULT NULL COMMENT '身份证号码-gzmu_ann_user',
  `wx_union_id` varchar(255) DEFAULT NULL COMMENT '一个用户对于同主体微信小程序／公众号／APP的标识-gzmu_ann_user',
  `wx_open_id` varchar(255) DEFAULT NULL COMMENT '一个用户对于一个小程序／公众号的标识-gzmu_ann_user',
  `wx_nick_name` varchar(255) DEFAULT NULL COMMENT '用户微信昵称-gzmu_ann_user',
  `wx_head_img_url` varchar(255) DEFAULT NULL COMMENT '用户微信中的头像地址-gzmu_ann_user-gzmu_ann_user',
  `enter_date` date DEFAULT NULL COMMENT '入学年份（选填）-gzmu_ann_user',
  `major_depart_id` bigint(20) DEFAULT NULL COMMENT '专业ID（选填）-gzmu_ann_user',
  `certificate_photo_path` varchar(255) DEFAULT NULL COMMENT '其他证件（学生证、毕业/学位证）照片路径（选填）-gzmu_ann_user',
  `verify_status` int(11) DEFAULT NULL COMMENT '认证状态（0：待认证、1：认证通过、2：认证未通过）-gzmu_ann_user',
  `sort` int(11) DEFAULT NULL COMMENT '排序-gzmu_ann_user',
  `remark` varchar(255) DEFAULT NULL COMMENT '备注-gzmu_ann_user',
  PRIMARY KEY (`user_id`) USING BTREE,
  UNIQUE KEY `UK_kpubos9gc2cvtkb0thktkbkes` (`email`) USING BTREE,
  UNIQUE KEY `username` (`username`) USING BTREE,
  UNIQUE KEY `uniq_username` (`username`) USING BTREE,
  UNIQUE KEY `uniq_email` (`email`) USING BTREE,
  KEY `FK5rwmryny6jthaaxkogownknqp` (`dept_id`) USING BTREE,
  KEY `FKpq2dhypk2qgt68nauh2by22jb` (`avatar_name`) USING BTREE,
  KEY `inx_enabled` (`enabled`) USING BTREE
) ENGINE=InnoDB AUTO_INCREMENT=9 DEFAULT CHARSET=utf8 ROW_FORMAT=COMPACT COMMENT='系统用户';

-- ----------------------------
-- Records of sys_user
-- ----------------------------
BEGIN;
INSERT INTO `sys_user` VALUES (1, 2, 'admin', '管理员', '18888888866', '201507802@qq.com', NULL, NULL, '$2a$10$Egp1/gvFlt7zhlXVfEFw4OfWQCGPw0ClmMcc6FjTnvXNRVf9zdMRa', b'1', 1, NULL, 'admin', '2020-05-03 16:38:31', '2018-08-23 09:11:56', '2020-08-11 10:49:40', 1, '522324199803242039', NULL, NULL, 'wx_text', NULL, NULL, NULL, NULL, 1, NULL, NULL);
INSERT INTO `sys_user` VALUES (2, 2, 'test', '测试', '18888888888', '231123@sina.com', NULL, NULL, '$2a$10$4XcyudOYTSz6fue6KFNMHeUQnCX5jbBQypLEnGk1PmekXt5c95JcK', b'0', 0, 'admin', 'admin', NULL, '2020-05-05 11:15:49', '2020-08-11 09:42:11', 1, '522324199803242039', NULL, NULL, 'wx_admin', NULL, NULL, NULL, NULL, 2, NULL, NULL);
INSERT INTO `sys_user` VALUES (4, 7, 'test3', '008', '15688990088', '008@qq.com', NULL, NULL, '$2a$10$At47GJERN9/XrWCLr29bAeW6Y1EZ90xw3jnAOFIDI7CUPQhzn.aBu', b'0', 0, 'admin', 'admin', '2020-05-03 16:38:31', '2020-08-11 09:47:44', '2020-08-11 09:47:44', 0, '522324199803242037', NULL, NULL, 'wx_text', NULL, NULL, NULL, NULL, 1, NULL, NULL);
INSERT INTO `sys_user` VALUES (5, 8, 'id-t', 'id_test', '13688060089', 'id-t@qq.com', NULL, NULL, '$2a$10$CsUjqU7G/10vBXM40za2m.UNAcDNYCzIzJNL/S9dN53OBqHZ/yXi.', b'0', 0, 'admin', 'admin', '2020-05-03 16:38:31', '2020-08-11 10:23:55', '2020-08-11 10:23:55', 1, '522324199803242037', NULL, NULL, 'wx_text', NULL, NULL, NULL, NULL, 1, NULL, NULL);
INSERT INTO `sys_user` VALUES (6, 8, 'id-t2', 'id-t2', '13599000099', 'id-t2@qq.com', NULL, NULL, '$2a$10$D1ylsTzolCMl9.C6rI.Jtu8.CD4tO76tNU1SA8H/G0pt628TH7KZO', b'0', 0, 'admin', 'admin', '2020-05-03 16:38:31', '2020-08-11 10:27:13', '2020-08-11 10:27:13', 0, '522324199803242037', NULL, NULL, 'wx_text', NULL, NULL, NULL, NULL, 1, NULL, NULL);
INSERT INTO `sys_user` VALUES (7, 7, 'id-t5', 'id-t5', '13768890770', 'id-t5@qq.com', NULL, NULL, '$2a$10$HjOYq4kyHZpUM5.pSm9InueNoK8kHxwjBSPrjcy7PiLOAFm.Y6sIi', b'0', 0, 'admin', 'admin', '2020-05-03 16:38:31', '2020-08-11 10:45:25', '2020-08-11 10:45:25', 1, '522324199803242037', NULL, NULL, 'wx_text', NULL, NULL, NULL, NULL, 1, NULL, NULL);
INSERT INTO `sys_user` VALUES (8, 8, 'id-t7', 'id-t7', '13768907769', '6900@qq.com', NULL, NULL, '$2a$10$98SUu/zD4qVlwcQlbnRyBeMyp9FG7ZZ2Kdc1JR2ucYDiaqQMmAOVK', b'0', 0, 'admin', 'admin', '2020-05-03 16:38:31', '2020-08-11 10:50:25', '2020-08-11 10:50:25', 0, '522324199803242039', NULL, NULL, 'wx_text', NULL, NULL, NULL, NULL, 1, NULL, NULL);
COMMIT;

SET FOREIGN_KEY_CHECKS = 1;
